package leetcode;

import java.math.BigInteger;
import java.util.Arrays;

public class LCR27 {
    public static void main(String[] args) {

        int[] originalArray = {3,2,2,3};
        int elementToRemove = 3;

        // 使用 Stream API 过滤掉要删除的元素
        int[] newArray = Arrays.stream(originalArray)
                .filter(value -> value != elementToRemove)
                .toArray();

        // 打印新数组
        for (int num : newArray) {
            System.out.print(num + " ");
        }


        BigInteger bigInteger = BigInteger.valueOf(10);
        System.out.println( bigInteger.pow(9));



    }
}
